package com.bruce.apkinstaller;

import android.content.Context;
import android.util.Log;

import com.htrip.dbmodule.provider.ProviderDao;
import com.htrip.entitymodule.appUpdate.Apps;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/1/19.
 */

public class DataModel {
    public static List<String> queryAppList(final Context context) {
        List<Apps> appUpdateBeanList = ProviderDao.getInstance(context).queryAppUpdateList();
        List<String> list = new ArrayList<>();
        for (int i = 0; i < appUpdateBeanList.size(); i++) {
            list.add(appUpdateBeanList.get(i).getStoragePosition());
        }
        return list;
    }
}
